package com.atguigu.boot.listeners;

import org.springframework.boot.SpringApplicationRunListener;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Configuration;

/**
 * @author zp
 * @version 1.0
 * @description: TODO
 * @date 2022/9/25 15:58
 */
public class MySpringApplicationRunListener implements SpringApplicationRunListener {
    @Override
    public void starting() {
        System.out.println("自定义监听器正在执行");
    }

    @Override
    public void started(ConfigurableApplicationContext context) {
        System.out.println("自定义监听器已经执行");
    }
}
